import React from "react";
import ReactDOM from "react-dom";
import { HashRouter as Router, Route, Switch } from "react-router-dom";
import createHistory from "history/createHashHistory";
import "antd/dist/antd.css";
import "./index.css";
import "./style/list.css";
// import App from './App';
import MeetingArrange from "./pages/MeetingArrange";
import AddMeeting from "./pages/AddMeeting";
import EditTable from "./pages/EditTable";
import DelMeetingById from "./pages/DelMeetingById";

const history = createHistory();

ReactDOM.render(
  <Router history={history}>
    <Switch>
      <Route exact path="/" component={MeetingArrange}></Route>
      <Route exact path="/AddMeeting" component={AddMeeting}></Route>
      <Route exact path="/EditTable" component={EditTable}></Route>
      <Route exact path="/DelMeetingById" component={DelMeetingById}></Route>

      {/* 重定向 */}
      {/* <Redirect to="/" /> */}
    </Switch>
  </Router>,
  document.getElementById("root")
);
// history.push("/admin");
// history.go();
